Skip to content

intrinsic-test: make types generic over SupportedArchitecture#2170

Merged
davidtwco merged 3 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-generic-over-arch
Jun 21, 2026
Merged

intrinsic-test: make types generic over SupportedArchitecture#2170
davidtwco merged 3 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-generic-over-arch

Conversation

@davidtwco

@davidtwco davidtwco commented Jun 19, 2026

Copy link
Copy Markdown
Member

Split out from #2160. This patch contains a refactor which makes the Argument and Intrinsic types generic over the SupportedArchitectureTest trait, rather than IntrinsicTypeDefinition. This makes it easier to add logic that is per-architecture but not necessarily per-type, which is required in the SVE support. It also renames some types to keep them relatively short after these changes.

r? @sayantn

@sayantn sayantn added this pull request to the merge queue Jun 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Jun 20, 2026
This isn't strictly necessary but these type names were longer than they
needed to be.
Refactoring enabling accessing architecture-specific behaviour that isn't
associated with either of the return or argument types.
Refactoring enabling accessing architecture-specific behaviour that isn't
associated with the specific argument type.
@davidtwco davidtwco force-pushed the intrinsic-test-generic-over-arch branch from 2bef828 to 9c3afb4 Compare June 21, 2026 18:33
@rustbot

This comment was marked as resolved.

@davidtwco davidtwco added this pull request to the merge queue Jun 21, 2026
Merged via the queue into rust-lang:main with commit e6f4bc1 Jun 21, 2026
82 checks passed
@davidtwco davidtwco deleted the intrinsic-test-generic-over-arch branch June 21, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants